#
# Makefile para Server
#
#

CC = gcc
CFLAGS = -g -Wall -pedantic
LDFLAGS=
SOURCES = main.c server.c
OBJECTS = $(SOURCES:.c = .o)
EXECUTABLE = run_server

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *o $(EXECUTABLE)



